package db

const TableNameSign = TablePrefix + "sign"

type Sign struct {
	BaseModel
	Dates  int64 `gorm:"column:date;type:int(11);default:0;comment:天数" json:"dates" form:"dates"`          // 天数
	TypeID uint  `gorm:"column:type_id;type:int(11);default:0;comment:类型id" json:"type_id" form:"type_id"` // 类型id
	Num    int64 `gorm:"column:num;type:int(11);default:0;comment:数量" json:"num" form:"num"`               // 数量
}

func (*Sign) TableName() string {
	return TableNameSign
}

type SignHasOneType struct {
	Sign
	Types Type `gorm:"foreignKey:ID;references:TypeID" json:"types"`
}
